package Temp;

public class PersonTest {
    public static void main(String[] args) {
        PingPongAthlete ppa = new PingPongAthlete("张三", 23);
        ppa.learn();
        ppa.speakEnglish();
        System.out.println(ppa.getAge() + "岁的" + ppa.getName());

        BasketBallCoach bbc = new BasketBallCoach("李四", 24);
        bbc.teach();
        System.out.println(bbc.getAge() + "岁的" + bbc.getName());
    }
}